package com.jemframework.domain;

import java.util.HashMap;
import java.util.Map;

import com.jemframework.Initializable;

public abstract class AbstractEntityHomeFactory implements EntityHomeFactory, Initializable {

  private final Map<Integer, EntityHome> iMapping = new HashMap<Integer, EntityHome>();

  public AbstractEntityHomeFactory() {
    super();
  }

  public abstract void initialize();

  protected Map<Integer, EntityHome> getMapping() {
    return iMapping;
  }

  public EntityHome getEntityHome(int anEntityType) {
    return iMapping.get(anEntityType);
  }
}
